package com.example.model.entity;


import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 设备来源表 实体类
 *
 * @author Tellsea
 * @Description Created on 2020-12-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TSource implements Serializable {

    /**
     * 来源id
     */
    @TableId(value = "source_id", type = IdType.ID_WORKER_STR)
    private String sourceId;

    /**
     * 来源名称
     */
    private String sourceName;
    private String sourceNum;
    /**
     * 有效性
     */
    private Long isValid;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDate;

    /**
     * 修改时间
     */
    private LocalDateTime updateDate;

    /**
     * 备注
     */
    private String remarks;

}
